package framework.controller;

import framework.model.Entry;
import framework.model.IAccount;

public class Deposit implements ITransaction {

    private IAccount account;
    private Entry entry;
    //

    public Deposit(IAccount acc, Entry ent) {
        this.account = acc;
        this.entry = ent;
    }

    @Override
    public void execute() {
        account.deposit(entry);
    }
}
